<template>
    <el-popconfirm confirm-button-text="删除" cancel-button-text="取消" icon-color="#F56C6C" title="你确定要删除么?"
        @confirm="del">
        <template #reference>
            <el-button size="small" type="danger" :icon="Close" v-permission="permission">删除</el-button>
        </template>
    </el-popconfirm>
</template>

<script setup lang='ts'>
import { Close } from '@element-plus/icons-vue'
defineProps(['permission'])
const emit = defineEmits(['delBtn'])

const del = () => {
    emit('delBtn')
}
</script>

<style scoped lang='scss'>
</style>